package com.ivr.cm.data;

/**
 * 鉴权请求包
 * @author liugeng
 * 2015-12-16
 * @version 1.0
 *
 */
public class ValidateData {
	private BaseData baseData;		//IVR基础数据包
	private int statecode;     		//节点状态码便于协查
	private int result;				//鉴权结果
	private String voice;			//语音名称
	private int timeRemain;			//本次剩余时长(秒)
	private String hungupSms = "0";	//是否发送挂机短信，0 不发送  1 发送
	/*
	 * 高阳接口定义，请勿更改   ,对应result字段
	 * 0－可以接通：合法用户 
	 * 1－可以接通：限费－还有剩余时长 
	 * 2－无法接通：黑名单用户 
	 * 3－无法接通：非服务时段
	 * 4－无法接通：限费－没有剩余时长 
	 * 5－其他无法接通
	 */
	public static final int RESULT_VALID = 0;
	public static final int RESULT_VALID_LIMITED = 1;
	public static final int RESULT_INVALID_BLOCKUSER = 2;
	public static final int RESULT_INVALID_SERVICETIME = 3;
	public static final int RESULT_INVALID_NOTIMELEFT = 4;
	public static final int RESULT_INVALID_OTHER = 5;
	/*
	-- 语音说明	 
	-- "0433_tip_00.vox": 你好，你所拨打的业务已暂停服务，请拨打其他业务，本条提示音免费，请挂机
	*/
	public static final String VOICE_INVALID_BLOCKUSER = "0433_tip_01.wav";
	public static final String VOICE_INVALID_SERVICETIME = "0433_tip_01.wav";
	public static final String VOICE_INVALID_NOTIMELEFT = "0433_tip_01.wav";
	public static final String VOICE_INVALID_OTHER = "0433_tip_01.wav";
	public static final String VOICE_LIMIT_MENU = "00";
	
	public BaseData getBaseData() {
		return baseData;
	}
	public void setBaseData(BaseData baseData) {
		this.baseData = baseData;
	}
	public int getStatecode() {
		return statecode;
	}
	public void setStatecode(int statecode) {
		this.statecode = statecode;
	}
	public int getResult() {
		return result;
	}
	public void setResult(int result) {
		this.result = result;
	}
	public String getVoice() {
		return voice;
	}
	public void setVoice(String voice) {
		this.voice = voice;
	}
	public int getTimeRemain() {
		return timeRemain;
	}
	public void setTimeRemain(int timeRemain) {
		this.timeRemain = timeRemain;
	}
	public String getHungupSms() {
		return hungupSms;
	}
	public void setHungupSms(String hungupSms) {
		this.hungupSms = hungupSms;
	}
}